<?php
/**
 * Created by PhpStorm.
 * User: august
 * Date: 2021/5/19
 * Time: 14:29
 */

namespace DesignPatterns\Structure\Facade;


class Facade
{
    private $file;
    private $encrypt;

    public function __construct()
    {
        $this->file = new File();
        $this->encrypt = new Encrypt();
    }

    public function encryptFile()
    {
        echo $this->file->getContent();
        echo "\n";
        echo $this->encrypt->encrypt();
    }
}